package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-10-18
 * Time: 17:44
 */
public class Test3 {
    public static int count = 0;
    public static int fib(int n) {
        if (n == 1) {
            return 0;
        }
        if (n == 2) {
            count++;
            return 1;
        }
        return fib(n-1)+fib(n-2);
    }
    public static void main(String[] args) {
        int n = 0;
        System.out.println(fib(n));
    }
}
